import java.util.Scanner;

public class Main {
    public static int func2(int M,int N){
        int count = 0;
        for (int k = 0; k < M; k++) {
            count++;
        }
        for (int k = 0; k < N; k++) {
            count++;
        }
        return count;
    }

    public static void main(String[] args) {
        Scanner num = new Scanner(System.in);
        int m = num.nextInt();
        int n = num.nextInt();
        System.out.println(func2(m, n));
    }
}
